package com.jumi.microservice.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 仓库常规库存占用实体类
 * @ClassName StockOccupyLog
 * @Author Abel Yang
 * @Date 2020/9/9/009 15:05
 **/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "stock_occupy实体", description = "仓库常规库存占用实体类")
@TableName(value = "stock_occupy", keepGlobalPrefix = true)
@Data
public class StockOccupyDO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 611863938293800293L;
    @ApiModelProperty(value = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "")
    private Long materialId;
    @ApiModelProperty(value = "")
    private Long goodsId;
    @ApiModelProperty(value = "")
    private Long warehouseId;
    @ApiModelProperty(value = "售后订单号")
    private String afterSaleOrderSn;
    @ApiModelProperty(value = "仓库出库申请id")
    private Long outStockApplyId;
    @ApiModelProperty(value = "占用类型: 0-商城占用;1-仓库占用")
    private Byte occupyType;
    @ApiModelProperty(value = "占用数量")
    private Integer occupyNum;
    @ApiModelProperty(value = "是否解除占用：0-占用中，1-解除占用")
    private Boolean isReleased;
    @ApiModelProperty(value = "")
    private String backup;
    @ApiModelProperty(value = "")
    private String createBy;
    @ApiModelProperty(value = "")
    private Date createTime;
    @ApiModelProperty(value = "")
    private Date updateTime;
    @ApiModelProperty(value = "")
    private String updateBy;
    @ApiModelProperty(value = "")
    private Boolean isDel;

}
